Skip to content

feat/kiosk home sound#14

Merged
AkarinServer merged 6 commits intomainfrom
feat/kiosk-home-sound
Feb 25, 2026
Merged

feat/kiosk home sound#14
AkarinServer merged 6 commits intomainfrom
feat/kiosk-home-sound

Conversation

@AkarinServer
Copy link
Owner

  • feat: Implement payment screen with auto-confirmation and notification watching in Kiosk, and add product list screen to Manager.
  • feat: Introduce settings screen, PIN management, home app selection, and supporting services for kiosk configuration.
  • feat: Introduce Kiosk application structure and initial adaptive UI and Flutter expert skill documentation.
  • fix: text
  • feat: home
  • feat: Implement success sound playback with audioplayers and a dedicated service.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 12e211cff7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +242 to +244
if (!matched) return false;
_confirmPayment();
return true;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Persist fallback notification match before confirming payment

When _startLatestPaymentFallback succeeds, _tryConfirmFromLatest calls _confirmPayment() directly, bypassing the normal PaymentNotificationWatchService match path that writes *_notify_checked_amount/matched key fields and checks key reuse. In the exact scenario this fallback targets (snapshot/event watch misses but latest-notification polling finds a hit), the order is confirmed in UI but remains unpaid in storage, and duplicate-notification dedupe is skipped for future orders.

Useful? React with 👍 / 👎.

Comment on lines +521 to +524
final alipayFold =
double.tryParse(_alipayDiscountController.text.trim()) ?? 10.0;
final wechatFold =
double.tryParse(_wechatDiscountController.text.trim()) ?? 10.0;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reject invalid discount text instead of defaulting to 10

These parses coerce any non-numeric input to 10.0, so malformed values like 9,9 or accidental text silently pass validation and get saved as full price instead of surfacing an error. That can misconfigure provider discounts and cause downstream payment amount checks to mismatch unexpectedly during auto-confirm.

Useful? React with 👍 / 👎.

@AkarinServer AkarinServer merged commit 1e4b183 into main Feb 25, 2026
1 check passed
@AkarinServer AkarinServer deleted the feat/kiosk-home-sound branch February 25, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant